import tkinter as tk
from tkinter import ttk

def views(root):
    tk.Label(root, text="买入股数：10000").place(x=30, y=0)
    # total_entry = tk.Entry(root)
    # total_entry.place(x=135,y=0)

    tk.Label(root, text="成交价：").place(x=30, y=30)
    buy_entry = tk.Entry(root)
    buy_entry.place(x=135, y=30)

    tk.Label(root, text="第一次卖出价位:").place(x=30, y=60)
    input_entry1 = tk.Entry(root)
    input_entry1.place(x=135, y=60)
    dropdown = ttk.Combobox(root, width=6)
    dropdown['values'] = ('1/2', '1/3')
    dropdown.place(x=300, y=60)
    dropdown.current(0)  # 设置默认选中第一个选项

    tk.Label(root, text="第二次卖出价位:").place(x=30, y=90)
    input_entry2 = tk.Entry(root)
    input_entry2.place(x=135, y=90)

    tk.Label(root, text="第三次卖出价位:").place(x=30, y=120)
    input_entry3 = tk.Entry(root)
    input_entry3.place(x=135, y=120)

    tk.Label(root, text="卖出金额:").place(x=30, y=150)
    result1 = tk.Entry(root, width=10)
    result1.place(x=135, y=150)
    tk.Label(root, text="-").place(x=210, y=150)
    result2 = tk.Entry(root, width=10)
    result2.place(x=220, y=150)

    tk.Label(root, text="=").place(x=290, y=150)
    result3 = tk.Entry(root, width=10)
    result3.place(x=310, y=150)

    tk.Label(root, text="盈亏:").place(x=30, y=180)
    result4 = tk.Entry(root)
    result4.place(x=135, y=180)

    return buy_entry,input_entry1,input_entry2,input_entry3,result1,result2,result3,result4,dropdown